package com.feizi.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.feizi.entity.AddressEntity;
import com.feizi.entity.OrderdetailEntity;
import com.feizi.entity.OrderinfoEntity;
import com.feizi.entity.Product;
import com.feizi.entity.ProductType;
import com.feizi.entity.ShopcartEntity;
import com.feizi.mapper.AddressMapper;
import com.feizi.mapper.OrderMapper;
import com.feizi.mapper.ProductMapper;
import com.feizi.mapper.ShopcartMapper;
import com.feizi.service.AddressService;
import com.feizi.service.OrderService;
import com.feizi.service.ProductService;
import com.feizi.service.ShopcartService;

@Service
public class ProductServiceImpl implements ProductService{
	
	@Autowired
	private ProductMapper productMapper;

	@Override
	public List<ProductType> findProducttype() {
		// TODO Auto-generated method stub
		return productMapper.findProducttype();
	}

	@Override
	public List<Product> findProduct(Product product) {
		// TODO Auto-generated method stub
		return productMapper.findProduct(product);
	}

	@Override
	public List<Product> findProductTJ() {
		// TODO Auto-generated method stub
		return productMapper.findProductTJ();
	}

	@Override
	public Product getProduct(int id) {
		// TODO Auto-generated method stub
		return productMapper.getProduct(id);
	}

}
